﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using WoChu.RfClient.Entity;

namespace WoChu.RfClient.Login
{
    public class LoginUIRule
    {
        private static LoginUIRule _NewInstance = new LoginUIRule();

        public static LoginUIRule NewInstance
        {
            get
            {
                if (_NewInstance == null)
                {
                    _NewInstance = new LoginUIRule();
                }

                return _NewInstance;
            }
        }

        public OutPutParams<UserInfo> LogonUser(string userID, string userPswd)
        {
            return WoChu.CF.BaseFrame.WebClient.WebGetHelper<ILogin>.NewInstance.InvokeWebMethod<OutPutParams<UserInfo>>("LogonUser", new object[] { userID, userPswd });
        }
    }
}
